package com.TxmSy.manager;

import java.util.List;

import com.TxmSy.dao.ExpressDao;
import com.TxmSy.entity.Express;

public class ExpressManager {
	private ExpressDao expressDao;
	public void setExpressDao(ExpressDao expressDao) {
		this.expressDao = expressDao;
	}

	public void addexpress(Express express) {
		expressDao.addexpress(express);
	}
	
	public List<Express> listexpress() {
		return expressDao.listexpress();
	}
	
	public void updateexpress(Express express){
		expressDao.updateexpress(express);
	}
	
	public Express updateexpressid(int id) {
		return expressDao.updateexpressid(id);
	}
	
	public void deleteexpress(int id) {
		expressDao.deleteexpress(id);
	}
	
	public int sp(int id){
		return expressDao.sp(id);
	}
	
	public int yszt(int id){
		return expressDao.yszt(id);
	}
	
	public List<Express> queryexpress(String dh) {
		return expressDao.queryexpress(dh);
	}
	
	public List<Express> chaexpress(String dh) {
		return expressDao.chaexpress(dh);
	}
	
	public List listexpresss(int page, int rows) {
		return expressDao.listexpresss(page, rows);
	}
	
	public int hsz(int id){
		return expressDao.hsz(id);
	}
	
	public List<Express> listexpresshsz(String hsz) {
		return expressDao.listexpresshsz(hsz);
	}
}
